//当前这个模块：API进行统一的管理
import requests from "@/api/request";
import axios from "axios";
//横向柱状图
export const sellerData = () => requests({ method: "GET", url: "/seller" });
//堆叠折线图
export const trendData = () => requests({ method: "GET", url: "/trend" });
//散点图的坐标信息
export const mapData = () => requests({ method: "GET", url: "/map" });
//中国地图数据
export const chinaMap = () =>
  axios({ method: "GET", url: "http://123.249.24.36//static/map/china.json" });
//省份地图数据
export const provinceMap = (arg) => {
  return axios({ method: "GET", url: `http://123.249.24.36/${arg.path}` });
};
//竖向柱状图
export const rankData = () => requests({ method: "GET", url: "/rank" });
//饼图
export const hotProductData = () =>
  requests({ method: "GET", url: "/hotproduct" });
//饼图
export const stockData = () => requests({ method: "GET", url: "/stock" });
